﻿
using JESAI.HttpRequestMonitor;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Text;

namespace JESAI.HttpRequestMonitor.Filters
{
    public class HttpRequestMonitorExceptionFilter : IExceptionFilter
    {
        public void OnException(ExceptionContext context)
        {
            if (context.Exception != null)
            {
                context.HttpContext.Items.Add(SysConst.HttpRequestMonitorGlobalException, context.Exception);
            }
        }
    }
}
